<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
	<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
	<script type="text/javascript"src="http://jquery-jsonp.googlecode.com/files/jquery.jsonp-1.1.0.min.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/english.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/settings_english.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/chinese.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/settings_chinese.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/shrimp7.min.js"></script>
	<link rel="stylesheet"type="text/css"href="../css/style.css"/>
	<link rel="stylesheet"type="text/css"href="../css/ui/jquery-ui-1.7.2.custom.css"/>
	<meta http-equiv="Content-Type"content="text/html; charset=utf-8"/>
	<meta http-equiv="Pragma"content="no-cache"/>
	<title>shrimp7 web demo - toggleScreen</title>
	
	<script>
		function demo1(){
			shrimp7.toggleScreen({
				id:		'myScreen',
				type:	'element',
				title:	'Demo 1 screen',
				dropIn:	'#mydropinscreenelement',
			});
		}
		
		function demo2(){
			shrimp7.toggleScreen({
				id:		'myScreen',
				type:	'dialog',
				title:	'Demo 2 screen',
				dropIn:	'#mydropinscreenelement',
			});
		}
	</script>
	
</head>
<body>

<h1>shrimp7.toggleScreen(object)</h1>

<p>This demo shows the toggleScreen functionality.</p>

<input type="button" onclick="demo1()" value="demo 1 open screen in element"/> 
<input type="button" onclick="demo2()" value="demo 2 open screen in dialog"/>

<div id="mydropinscreenelement"></div>

<div id="shrimp7screenContent" style="display:none;">

	<div id="myScreen" style="display:none;">
		this is my screen..
	</div>
	
	<div id="anotherScreen" style="display:none;">
		this is another screen..
	</div>

</div>

</body>
</html>